package conexao;

import java.sql.DriverManager;
import java.sql.SQLException;

public class ConectarComBD {
	
	private static final String user = "root";
	private static final String password = "root";
	private static final String url = "jdbc:mysql://localhost:3307/campingdomagicobd";
	
	public static java.sql.Connection conectarComMysql()throws Exception{
		
		Class.forName("com.mysql.jdbc.Driver");
		java.sql.Connection connection = DriverManager.getConnection(url, user, password);
		
		return connection;
	}
	
}